///////////////////////////////////////////////////////////////////////////////
//2013/4/4
//周俊
//基础场景头文件
///////////////////////////////////////////////////////////////////////////////
#ifndef __BASE_SCENE_H__
#define __BASE_SCENE_H__

#include "cocos2d.h"
#include "../base/Helper.h"
#include "../base/SignalSlot.h"

TSP_NS_START

class BaseScene : public cocos2d::Scene, public SignalSet
{
public:
    enum
    {
        kEventUnknown = 0,
        kBeforeEnter,
        kAfterEnter,
        kBeforeExit,
        kAfterExit,
        kEventMax
    };
    virtual bool init();
    virtual ~BaseScene();
    BaseScene* create();

    virtual void onEnter();
    virtual void onExit();

protected:
    BaseScene();

private:
    TSP_DISALLOW_COPY_AND_ASSIGN(BaseScene);
};

TSP_NS_END

#endif // __BASE_SCENE_H__
